package com.example.mybatisplus.model.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p >
 *
 * @author ablbb
 * @since 2024-07-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Student对象", description="")
public class Student extends Model<Student> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "專業")
    private String major;

    @ApiModelProperty(value = "角色（1本科0研究）")
    private String studentRole;

    @ApiModelProperty(value = "是否入住")
    private Boolean isLived;

    private String name;

    @ApiModelProperty(value = "床位")
    private Integer bedId;

    @ApiModelProperty(value = "房間號")
    private Integer roomId;

    private Integer floor;

    private String buildingId;

    private String communityId;

    private Long teacherId;
    private Integer price;

    @ApiModelProperty(value = "學號")
    private String sn;

    private Boolean isDeleted;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
